package com.demo.day522;

import java.util.Arrays;

/**
@Auther: 86176
@Date: 2021/5/22 - 05 - 22 - 19:59 
@version: 1.0
*/
public class ArraysDemo {
    public static void main(String[] args) {
        int[] arr = new int[10];
        for (int i = 0; i < arr.length; i++) {
            arr[i] = i;
        }
        int[] arrs = Arrays.copyOf(arr, arr.length + 1);
        System.out.println(Arrays.toString(arr));
        System.out.println(Arrays.toString(arrs));
    }

}
